﻿/*
	AnOtherBlog 0.2 to 0.3 SQL Server 2005 Schema

	2008-07-05, Julio, Ajustes varios
					aob_Blogs: Tabla para mantener la Configuración del Blog
					aob_Categories, aob_Pages, aob_Posts: Agrega BlogID

*/


/* Configuración del Blog */
/* Objeto:  Table [dbo].[aob_Blogs] */
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[aob_Blogs](
	[BlogID] [int] NOT NULL,
	[BlogSettings] [xml] NULL,
 CONSTRAINT [PK_aob_Blogs] PRIMARY KEY CLUSTERED 
(
	[BlogID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[aob_Categories] ADD
	[BlogID] [int] NOT NULL CONSTRAINT [DF_aob_Categories_BlogID]  DEFAULT ((1))
GO

ALTER TABLE [dbo].[aob_Pages] ADD
	[BlogID] [int] NOT NULL CONSTRAINT [DF_aob_Pages_BlogID]  DEFAULT ((1))
GO

ALTER TABLE [dbo].[aob_Posts] ADD
	[BlogID] [int] NOT NULL CONSTRAINT [DF_aob_Posts_BlogID]  DEFAULT ((1))
GO

